import fetch from '@/api'
// 获取列表
export function getStorageSetList(params) {
    return fetch({
        method: 'get',
        url: `/warehouseRoom`,
        params,
    })
}

//新增管辖库房
export function addStorageSet(data) {  
    return fetch({
        method:'post',
        url:`/warehouseRoom`,
        data,
    })
}

// 编辑
export function updateStorageSet(id,data) {
    return fetch({
        method:'put',
        url:`/warehouseRoom/${id}`,
        data,
    })
}

// 删除
export function deleteStorageSet(id) {
    return fetch({
        method:'delete',
        url:`/warehouseRoom/${id}`,
    })
}
// 库房详情
export function detailStorageSet(id) {
    return fetch({
        method:'get',
        url:`/warehouseRoom/${id}`,
    })
}
